package com.sw.util;

import java.util.Random;

public class CreateNumberUtil {

	/**
	 * 6为随机数算法
	 * @param min
	 * @param max
	 * @return
	 */
	public static int nextInt(final int min, final int max){
		Random random = new Random();
	    int tmp = Math.abs(random.nextInt());
	    return tmp % (max - min + 1) + min;
	}
	
	
	/**
	 * 生成6为随机数
	 * @return
	 */
	public static int getRandomNumber(){
		
		return nextInt(100000,999999);
	}
}
